home *** CD-ROM | disk | FTP | other *** search
- ; Shaders Script file
- ; Copyright (c) 2001-2003 Crytek Studios. All Rights Reserved.
- ; Author: Honich Andrey
-
- Version (1.00)
-
- //========================================================================
- // ATI R2xx / NVidia NV2X (PS.1.X and above)
-
- // Diffuse bump-mapping with ambient in alpha-channel of diffuse texture
- // One pass for single light source (one pass for each additional LS)
-
- // Supports:
- // 1. Dot3 light maps
- // 2. Simple light maps
- // 3. Three types of shadow maps (2D, Depth-maps and mixed Depth/2D)
- // 4. Stencil shadows
- // 5. Three types of light sources (Directional, Point/Omni, Projected)
- // 6. Optimised separate techniques for Single/Multiple light sources
- // 7. Optimised separate techniques for PS.2.0 shaders support (to reduce number of passes)
- // 8. Env. real-time radiosity
-
- Shader 'TemplBumpDiffuse_AlphaGlow_'
- (
- Params
- {
- Sort = Opaque
- }
-
- #include "BumpDiffuse_AGlow.csi"
- )
-
- Shader 'TemplBumpDiffuse_AlphaGlow'
- (
- Params
- {
- Sort = Opaque
- }
-
- #define %DIFFUSE 0x1
- #define %DIFFUSE_NCM 0x4
- #define %ALPHAGLOW 0x2000
- #define %BUMP_MAP 0x1000
-
- #include "IllumTemplate.csi"
-
- #undefine %BUMP_MAP
- #undefine %ALPHAGLOW
- #undefine %DIFFUSE_NCM
- #undefine %DIFFUSE
- )
-
- //=========================================================================================
-
-